<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * mstproses.php
 * @author ranuandra
 *
 * 12 Mar 2012 14:07:44
 *
 * 
 */

class Model_Mstproses extends ORM
{
	private $_field = array('proses', 'flag', 'urutan');
	private $_form = array('proses' => '', 'flag'=>'', 'urutan'=>'');
	
	public $rules = array(
					'proses' => array(
									array('min_length', array(':value', 0)),
								),
					'flag' => array(
									array('min_length', array(':value', 0)),
								),
					'urutan' => array(
									array('min_length', array(':value', 0)),
								),
	);
	
	public function getField()
	{
		return $this->_field;
	}
	
	public function getForm()
	{
		return $this->_form;
		
	}
	
	public function create_data($values)
	{
	    return $this->values($values, $this->_field)->create();
	}
}